<template>
  <div>
    <div class="top">
      <img :src="top.avatar" alt="" />
      <p>{{ top.author }}</p>
      <p>{{ top.introduction }}</p>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      top: {},
    };
  },
  created() {
    this.getTop();
  },
  methods: {
    async getTop() {
      let res = await this.$axios.post("/api/blog/setting/detail");
      this.top = res.data.data;
    },
  },
};
</script>

<style scoped>
.top {
/* 底部15px间距 */
  height: 150px;
  padding: 20px;
  line-height: 30px;
  background-color: #fff; /* 浅灰背景，与整体区分 */
  border-radius: 15px;
  text-align: center;
}
.top img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}
</style>